package jsonToolCompare.domain;

import java.util.Date;
import java.util.Hashtable;
import java.util.Map;

public class Group {
    private Map<String,User> users = new Hashtable<String,User>(); 
    
    private Date updateTime = null;
    public Date getUpdateTime() { return updateTime; }
    public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; }
 
    public Map<String,User> getUsers() { return users; }
    public void setUsers(Map<String,User> users) { this.users = users; }

    public void addUser(User user) {
        users.put(user.getName(), user);
    }
    
    public User getUser(String name) {
        return users.get(name);
    }
}
